import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
// 引入路由模式组件
// 注意: 在react-router-dom5中需要额外下载路由包类型声明文件
import { BrowserRouter as Router } from 'react-router-dom';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <Router>
    <App />
  </Router>
);


